﻿<Window x:Class="MyVideoViewerManager.ChooseSeriesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Icon="../Icon.ico"
    Title="ChooseSeriesWindow" Height="500" Width="400">
    <Grid>
        <Grid Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Search Results" FontSize="17" FontWeight="Bold" Margin="3" />
                <TextBlock Text="Multiple matches were found. Please select the correct listings." Margin="10,3,3,3" />
            </StackPanel>
            
            <ListBox x:Name="listingsListBox" Margin="5" Grid.Row="1" >
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="{Binding SeriesName}" TextWrapping="Wrap" FontWeight="Bold" Margin="3" />
                            <TextBlock Text="{Binding Overview}" TextWrapping="Wrap" Margin="10,3,3,3" MaxHeight="100" Width="314"  />
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            
            <Button x:Name="selectButton" Content="Select" Grid.Row="2" Margin="3" HorizontalAlignment="Left" Width="75"  />
            <Button x:Name="cancelButton" Content="Cancel" Grid.Row="2" Margin="3" HorizontalAlignment="Right" Width="75"  />
            
        </Grid>
    </Grid>
</Window>
